package com.ruoyi.environment.domain;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruoyi.common.core.annotation.Excel;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 环保事故对象 opm_env_accident
 *
 * @author cjie
 * @date 2021-07-23
 */
@Data
@ApiModel
public class OpmEnvAccident extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @ApiModelProperty(value = "序号")
    @JsonSerialize(using = com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
    @JSONField(serializeUsing= ToStringSerializer.class)
    private Long id;

    /** 事故名称 */
    @Excel(name = "事故名称")
    @ApiModelProperty(value = "事故名称")
    private String name;

    /** 详细描述 */
    @Excel(name = "详细描述")
    @ApiModelProperty(value = "详细描述")
    private String desc1;

    /** 事故等级 */
    @Excel(name = "事故等级")
    @ApiModelProperty(value = "事故等级")
    private String level;

    /** 发生时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发生时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "发生时间")
    private Date occurTime;

    /** 事故原因 */
    @Excel(name = "事故原因")
    @ApiModelProperty(value = "事故原因")
    private String reason;

    /** 处理结果 */
    @Excel(name = "处理结果")
    @ApiModelProperty(value = "处理结果")
    private String result;

    /** 处理负责人 */
    @Excel(name = "处理负责人")
    @ApiModelProperty(value = "处理负责人")
    private String responsible;


}
